package cn.edu.scau.cmi.luochenghao.chapter07;

interface ShowMessage {
	void showLabel(String s);
}

class TV implements ShowMessage {
	public void showLabel(String s) {
		System.out.println(s);
	}
}

class PC implements ShowMessage {
	public void showLabel(String s) {
		System.out.println(s);
	}
}

public class Example7_2 {

	public static void main(String[] args) {
		ShowMessage sm;
		sm=new TV();
		sm.showLabel("长城牌电视机");
		sm=new PC();
		sm.showLabel("联想奔月5008PC机");
	}

}
